package com.qfedu.stock.controller;

import com.qfedu.fmmall.entity.ShoppingCartVo;
import com.qfedu.stock.service.StockQueryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin
public class StockQueryControler {


    @Autowired
    private StockQueryService stockQueryService;

    @GetMapping("/stock/query")
    public List<ShoppingCartVo> query(String cids){
        return stockQueryService.selectShoppcartByCids(cids);
    }

}
